var initialState=[];
var _=require('lodash');
function detail(state=initialState,action){
    initialState=[];
    switch(action.type){
        case 'ADD_TO_DETAIL':
        return [...state,action.payload];
        default:
        return state;
    }
}

export default detail;